package Server;

public class Server {

    public static enum ClientStatus{Idle, Busy, Used, Off};
    
    /**
     * Wakes up a computer
     * @param computer name, MAC-adress or IP-adress
     */
    public static void wakeUpComputer(String computer){
        
    }
    
    /**
     * Wakes up a list of computers
     * @param computers list of computer names, MAC-adresses or IP-adresses
     */
    public static void wakeUpComputers(String[] computers){
        for(String computer : computers){
            wakeUpComputer(computer);
        }
    }
    
    /**
     * Wakes up a room of computers
     * @param roomID the id of the room
     */
    public static void wakeUpRoom(String roomID){
        
    }
    
    /**
     * @return list of all idle computers 
     */
    public static String[] getIdleComputers(){
        return null;
    } 
    
    /**
     * Shutsdowns a computer
     * @param computer the computer that's to be shutdown
     */
    public static void shutdownComputer(String computer){
        
    }
    
    /**
     * Shutdowns a list of computers
     * @param computers the computers that's to be shutdown
     */
    public static void shutdownComputers(String computers){
        
    }
    
    /**
     * Shutdowns a room of computers
     * @param roomID the id of the room
     */
    public static void shutdownRoom(String roomID){
        
    }
    
    /**
     * Checks the status of a computer
     * @param computer the computer
     * @return the status
     */
    public static ClientStatus checkComputerStatus(String computer){
        return null;
    }
    
    /**
     * @return a summary of all available resources
     */
    public static String availableResources(){
       return null; 
    }
    
    /**
     * If this is a new client, add it to the database.
     * Adds the computer to a list of active computers. 
     * @param name of the client
     * @param MAC adress of the client
     */
    public static void addClient(String name, String MAC){
        
    }
    
}




